<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Iniuriam: /home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/combat.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Iniuriam
   &#160;<span id="projectnumber">alpha 1</span>
   </div>
   <div id="projectbrief"> RPG futuriste</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/combat.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="combat_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __combat_h__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __combat_h__</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;math.h&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="personnage_8h.html">personnage.h</a>&quot;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="terrain_8h.html">terrain.h</a>&quot;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="constante_8h.html">constante.h</a>&quot;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="deplacement_8h.html">deplacement.h</a>&quot;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 
<a name="l00019"></a><a class="code" href="structCombattant.html">00019</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00020"></a>00020 {
<a name="l00021"></a><a class="code" href="structCombattant.html#aa64f22e558a3daf6241a22c84ba9670a">00021</a>     <a class="code" href="structPersonnage.html">Personnage</a>* <a class="code" href="structCombattant.html#aa64f22e558a3daf6241a22c84ba9670a">perso</a>;
<a name="l00022"></a><a class="code" href="structCombattant.html#ab682d3c592d55328886a084fa7d6d0e2">00022</a>     <span class="keywordtype">char</span> <a class="code" href="structCombattant.html#ab682d3c592d55328886a084fa7d6d0e2">camp</a>;
<a name="l00023"></a><a class="code" href="structCombattant.html#a8e6eff45443af9e288bbd9003073460d">00023</a>     <span class="keywordtype">int</span> <a class="code" href="structCombattant.html#a8e6eff45443af9e288bbd9003073460d">ordre</a>; 
<a name="l00025"></a><a class="code" href="structCombattant.html#abfbf61bd6eb5f92d541acea49be78b07">00025</a>     <span class="keywordtype">int</span> <a class="code" href="structCombattant.html#abfbf61bd6eb5f92d541acea49be78b07">posX</a>;
<a name="l00026"></a><a class="code" href="structCombattant.html#a8ba910f21699625815982b600c3a67cd">00026</a>     <span class="keywordtype">int</span> <a class="code" href="structCombattant.html#a8ba910f21699625815982b600c3a67cd">posY</a>;
<a name="l00027"></a><a class="code" href="structCombattant.html#af1757ec77235bf7516f874c4d14492ab">00027</a>     <span class="keywordtype">char</span> <a class="code" href="structCombattant.html#af1757ec77235bf7516f874c4d14492ab">orientation</a>; 
<a name="l00032"></a><a class="code" href="structCombattant.html#ae911eafd8a22da993556e9d988742048">00032</a>     <span class="keywordtype">char</span> <a class="code" href="structCombattant.html#ae911eafd8a22da993556e9d988742048">derniereAction</a>;    
<a name="l00040"></a><a class="code" href="structCombattant.html#af37e6fad4103b24a772ff0e504fe762e">00040</a>     <span class="keywordtype">char</span> arene [<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>];    
<a name="l00041"></a>00041 } <a class="code" href="structCombattant.html">Combattant</a>;
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 
<a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#aeed189e99bcd09b659a852de0447ce9f" title="Preconditions : terrain est initialisé   Postconditions : initialise l&#39;arene tab en fonction de terra...">areneInit</a> (<a class="code" href="structTerrain.html">Terrain</a>* terrain, <span class="keywordtype">char</span> tab[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>]);
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 
<a name="l00055"></a>00055 <span class="keywordtype">char</span> <a class="code" href="combat_8c.html#a5af2164bf53598d3765037f3d837ca0e" title="Preconditions : tab est un tableau de longueur l-1, trié dans l&#39;ordre croissant   Postconditions : l&#39;...">tri</a> (<span class="keywordtype">char</span>* tab, <span class="keywordtype">char</span> e, <span class="keywordtype">int</span> l);
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 
<a name="l00062"></a>00062 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#a02ef4811df1cf8b57c8944b62781b8f8" title="Preconditions : liste contient l personnages prêts à combattre, groupe est un tableau de longueur l n...">initCombattant</a> (<a class="code" href="structPersonnage.html">Personnage</a>* liste, <span class="keywordtype">int</span> l, <a class="code" href="structCombattant.html">Combattant</a>* groupe);
<a name="l00063"></a>00063 
<a name="l00068"></a>00068 <a class="code" href="structPersonnage.html">Personnage</a>* <a class="code" href="combat_8c.html#a93f49406bca23658abb2b6e2daee74c7" title="Preconditions : combattant est initialisé   Postconditions : retourne le personnage associé à combatt...">getCombattantPerso</a>(<a class="code" href="structCombattant.html">Combattant</a>* combattant);
<a name="l00069"></a>00069 
<a name="l00074"></a>00074 <span class="keywordtype">char</span> <a class="code" href="combat_8c.html#a84dac06c4a29f45271887ded479befa8" title="Preconditions : combattant est initialisé   Postconditions : retourne le camp de combattant.">getCombattantCamp</a>(<a class="code" href="structCombattant.html">Combattant</a>* combattant);
<a name="l00075"></a>00075 
<a name="l00080"></a>00080 <span class="keywordtype">int</span> <a class="code" href="combat_8c.html#a127d8f50690697a5261801995c0c4dd5" title="Preconditions : combattant est initialisé   Postconditions : retourne l&#39;ordre de combattant.">getCombattantOrdre</a>(<a class="code" href="structCombattant.html">Combattant</a>* combattant);
<a name="l00081"></a>00081 
<a name="l00086"></a>00086 <span class="keywordtype">int</span> <a class="code" href="combat_8c.html#a38c86e04fd854f8beaa51c1d124a057f" title="Preconditions : combattant est initialisé   Postconditions : retourne la position en X de combattant ...">getCombattantPosX</a>(<a class="code" href="structCombattant.html">Combattant</a>* combattant);
<a name="l00087"></a>00087 
<a name="l00092"></a>00092 <span class="keywordtype">int</span> <a class="code" href="combat_8c.html#a761b0d37e9136b1b6651f8b09e084980" title="Preconditions : combattant est initialisé   Postconditions : retourne la position en Y de combattant ...">getCombattantPosY</a>(<a class="code" href="structCombattant.html">Combattant</a>* combattant);
<a name="l00093"></a>00093 
<a name="l00098"></a>00098 <span class="keywordtype">char</span> <a class="code" href="combat_8c.html#af294b809692f20d3ef789d100036a91a" title="Preconditions : combattant est initialisé   Postconditions : retourne l&#39;orientation de combattant...">getCombattantOrientation</a>(<a class="code" href="structCombattant.html">Combattant</a>* combattant);
<a name="l00099"></a>00099 
<a name="l00104"></a>00104 <span class="keywordtype">char</span> <a class="code" href="combat_8c.html#a17ba0dbd1421fc53714b63c54502ba29" title="Preconditions : combattant est initialisé   Postconditions : retourne la dernière action de combattan...">getCombattantDerniereAction</a>(<a class="code" href="structCombattant.html">Combattant</a>* combattant);
<a name="l00105"></a>00105 
<a name="l00110"></a>00110 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#af4caa600286876511328d38a959acd0d" title="Preconditions : combattant est initialisé   Postconditions : copie l&#39;arene de combattant dans arene...">getCombattantArene</a>(<a class="code" href="structCombattant.html">Combattant</a>* combattant, <span class="keywordtype">char</span> arene[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>]);
<a name="l00111"></a>00111 
<a name="l00116"></a>00116 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#a410f8b480c9eb291839bf3e72560c402" title="Preconditions : combattant est initialisé   Postconditions : positionne le combattant en commençant p...">initPosGauche</a> (<a class="code" href="structCombattant.html">Combattant</a>* combattant, <span class="keywordtype">char</span> arene[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>]);
<a name="l00117"></a>00117 
<a name="l00118"></a>00118 
<a name="l00123"></a>00123 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#a8c63907843e1ce1287c053e981b6ae44" title="Preconditions : combattant est initialisé   Postconditions : positionne le combattant en commençant p...">initPosDroite</a> (<a class="code" href="structCombattant.html">Combattant</a>* combattant, <span class="keywordtype">char</span> arene[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>]);
<a name="l00124"></a>00124 
<a name="l00125"></a>00125 
<a name="l00130"></a>00130 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#a9bdb170f31d2021b11a4ccc3bd670ad8" title="Preconditions : les l combattants sont initialisés   Postconditions : positionne les l combattant de ...">initPosCombattant</a> (<a class="code" href="structCombattant.html">Combattant</a>*liste, <span class="keywordtype">int</span> l, <span class="keywordtype">char</span> arene[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>]);
<a name="l00131"></a>00131 
<a name="l00132"></a>00132 
<a name="l00137"></a>00137 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#a47b2e611f0ea47468449fc4c017f1ad6" title="Preconditions : les l combattants sont initialisés   Postconditions : les l combattants de liste sont...">ordreGroupe</a> (<a class="code" href="structCombattant.html">Combattant</a>* liste, <span class="keywordtype">int</span> l);
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 
<a name="l00144"></a>00144 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#a63c14376d52d21a2092b4ca9dc5a4165" title="Preconditions : les l personnages sont initialisés   Postconditions : les l personnages de la liste d...">initCombat</a> (<a class="code" href="structPersonnage.html">Personnage</a>* liste, <span class="keywordtype">int</span> l, <a class="code" href="structCombattant.html">Combattant</a>* groupe, <span class="keywordtype">char</span> arene[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>]);
<a name="l00145"></a>00145 
<a name="l00146"></a>00146 
<a name="l00151"></a>00151 <span class="keywordtype">char</span> <a class="code" href="combat_8h.html#a3aa1110e9dff1645174210e5ee21c8c0" title="Preconditions : 0&lt;=x&lt;TAILLE_MAX, 0&lt;=x&lt;TAILLE_MAX, 0&lt;=x&lt;TAILLE_MAX, 0&lt;=x&lt;TAILLE_MAX, 0&lt;orientation&lt;=4   Postconditions : renvoie 1 si les l membres du groupe sont dans le même camp, 0 sinon.">estDansChampDeVision</a> (<span class="keywordtype">char</span> arene[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>], <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> z, <span class="keywordtype">int</span> t,<span class="keywordtype">char</span> orientation);
<a name="l00152"></a>00152 
<a name="l00153"></a>00153 
<a name="l00158"></a>00158 <span class="keywordtype">char</span> <a class="code" href="combat_8c.html#a544afe3069105baf8b7c768d3db5180a" title="Preconditions : groupe est initialisé   Postconditions : renvoie 1 si les l membres du groupe sont da...">estLaFin</a> (<a class="code" href="structCombattant.html">Combattant</a>* groupe, <span class="keywordtype">int</span> l, <span class="keywordtype">int</span> campJoueur);
<a name="l00159"></a>00159 
<a name="l00164"></a>00164 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#a38429b7fdde880e86628199d8f72fb81" title="Preconditions : comb1 est initialisé, pas comb2   Postconditions : copie le contenu de comb1 dans com...">copieCombattant</a> (<a class="code" href="structCombattant.html">Combattant</a>* comb1, <a class="code" href="structCombattant.html">Combattant</a>* comb2);
<a name="l00165"></a>00165 
<a name="l00172"></a>00172 <span class="keywordtype">int</span> <a class="code" href="combat_8c.html#a6b71b894d021f959d7758a655293b972" title="Preconditions : groupe est initialisé   Postconditions : vérifie si des membres du groupe ont été tué...">testNbCombattant</a> (<a class="code" href="structCombattant.html">Combattant</a>* groupe, <span class="keywordtype">int</span> l, <span class="keywordtype">char</span> arene [<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>], <span class="keywordtype">char</span>* info);
<a name="l00173"></a>00173 
<a name="l00182"></a>00182 <span class="keywordtype">int</span> <a class="code" href="combat_8c.html#ab4a4c26bb0507c54369801666ee925dc" title="Preconditions : attaquant, defenseur sont initialisés   Postconditions : l&#39;attaquant tente une attaqu...">attaquer</a> (<a class="code" href="structCombattant.html">Combattant</a>* attaquant, <a class="code" href="structCombattant.html">Combattant</a>* defenseur, <span class="keywordtype">int</span> degats, <span class="keywordtype">int</span> bonusA, <span class="keywordtype">int</span> bonusD, <span class="keywordtype">int</span> bonusAg, <span class="keywordtype">int</span> bonusEsc, <span class="keywordtype">int</span> type,<span class="keywordtype">char</span> distance, <span class="keywordtype">char</span>* info);
<a name="l00183"></a>00183 
<a name="l00188"></a>00188 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#a44d4dd9696460d0daeafcc5fdfcb4c03" title="Preconditions : defenseur est initialisé   Postconditions : vérifie si le defenseur a effectué une at...">verifierDerniereAction</a> (<a class="code" href="structCombattant.html">Combattant</a>* defenseur,<span class="keywordtype">int</span>* bonusDef,<span class="keywordtype">int</span>* bonusEsc);
<a name="l00189"></a>00189 
<a name="l00194"></a>00194 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#acd14c3daefed1bb9bd768c1e3171b964" title="Preconditions : attaquant et defenseur sont initialisés   Postconditions : ajoute de l&#39;expérience à l...">ajouterCompetenceAttaque</a> (<a class="code" href="structCombattant.html">Combattant</a>* attaquant,<a class="code" href="structCombattant.html">Combattant</a>* defenseur, <span class="keywordtype">int</span> rapport, <span class="keywordtype">char</span> type);
<a name="l00195"></a>00195 
<a name="l00201"></a>00201 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#afaed8dc3c92b1145050130672852d372" title="Preconditions : attaquant et defenseur sont initialisés   Postconditions : l&#39;attaquant attaque brutal...">attaqueBrutale</a> (<a class="code" href="structCombattant.html">Combattant</a>* attaquant, <a class="code" href="structCombattant.html">Combattant</a>* defenseur, <span class="keywordtype">int</span> degat, <span class="keywordtype">char</span> type, <span class="keywordtype">char</span>* info);
<a name="l00202"></a>00202 
<a name="l00208"></a>00208 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#acf26a7a375ec5c51a44e8e97c5a80207" title="Preconditions : attaquant et defenseur sont initialisés   Postconditions : l&#39;attaquant attaque prudem...">attaquePrudente</a> (<a class="code" href="structCombattant.html">Combattant</a>* attaquant, <a class="code" href="structCombattant.html">Combattant</a>* defenseur, <span class="keywordtype">int</span> degat, <span class="keywordtype">char</span> type, <span class="keywordtype">char</span>* info);
<a name="l00209"></a>00209 
<a name="l00215"></a>00215 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#a5fc2806b383b02cbc054291dc02da235" title="Preconditions : attaquant et defenseur sont initialisés   Postconditions : l&#39;attaquant feint et attaq...">feinte</a> (<a class="code" href="structCombattant.html">Combattant</a>* attaquant, <a class="code" href="structCombattant.html">Combattant</a>* defenseur, <span class="keywordtype">int</span> degat,<span class="keywordtype">char</span> type, <span class="keywordtype">char</span>* info);
<a name="l00216"></a>00216 
<a name="l00222"></a>00222 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#a44529aeaaea3a00ee678e10fef6e5906" title="Preconditions : attaquant et defenseur sont initialisés   Postconditions : l&#39;attaquant vise et attaqu...">viserPourAttaque</a> (<a class="code" href="structCombattant.html">Combattant</a>* attaquant, <a class="code" href="structCombattant.html">Combattant</a>* defenseur, <span class="keywordtype">int</span> degat,<span class="keywordtype">char</span> type, <span class="keywordtype">char</span>* info);
<a name="l00223"></a>00223 
<a name="l00228"></a>00228 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#a72bed1c6cac79a2b2d99bf770926dc70" title="Preconditions : attaquant est initialisé   Postconditions : l&#39;attaquant prépare une parade pour une é...">preparerParade</a> (<a class="code" href="structCombattant.html">Combattant</a>* attaquant);
<a name="l00229"></a>00229 
<a name="l00234"></a>00234 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#af7129c8e04a82720044bde36e6384cbd" title="Preconditions : les l combattants de groupe sont initialisés,0&lt;=j&lt;l.   Postconditions : l&#39;ordinateur ex...">tourIA</a> (<a class="code" href="structCombattant.html">Combattant</a>* groupe, <span class="keywordtype">int</span> j, <span class="keywordtype">int</span> l, <span class="keywordtype">char</span> arene [<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>], <span class="keywordtype">char</span>* info);
<a name="l00235"></a>00235 
<a name="l00240"></a>00240 <span class="keywordtype">void</span> <a class="code" href="combat_8h.html#aa496fdd36c471364f68860a1ac42f8b6" title="Preconditions : les l combattants de groupe sont initialisés,0&lt;=j&lt;l.   Postconditions : correspond au...">tourJoueur</a> (<a class="code" href="structCombattant.html">Combattant</a>* groupe, <span class="keywordtype">int</span> j, <span class="keywordtype">int</span> l, <span class="keywordtype">char</span> arene [<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>]);
<a name="l00241"></a>00241 
<a name="l00246"></a>00246 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#afce35bb9d340a17ef2ad283106a31bd8" title="Preconditions : les l personnages de liste sont initialisés   Postconditions : un combat s&#39;engage ent...">combat</a> (<a class="code" href="structPersonnage.html">Personnage</a>* liste, <span class="keywordtype">int</span> l, <span class="keywordtype">char</span> arene [<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>]);
<a name="l00247"></a>00247 
<a name="l00252"></a>00252 <span class="keywordtype">char</span> <a class="code" href="combat_8c.html#a454db44c1be5c8a9e3614c7fa03aa1b3" title="Preconditions : arene,attaquant et defenseurs sont initialisés.   Postconditions : retourne 1 si le d...">estAPortee</a> (<span class="keywordtype">char</span> arene[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>],<a class="code" href="structCombattant.html">Combattant</a>* attaquant, <a class="code" href="structCombattant.html">Combattant</a>* defenseur,<span class="keywordtype">int</span> portee);
<a name="l00253"></a>00253 
<a name="l00258"></a>00258 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#a0725c7566d73418654f55004e4e9499b" title="Preconditions : arene et perso sont initialisés.   Postconditions : affiche la portee de l&#39;arme de pe...">afficherPortee</a> (<span class="keywordtype">char</span> arene[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>],<a class="code" href="structCombattant.html">Combattant</a>* perso, <span class="keywordtype">int</span> portee);
<a name="l00259"></a>00259 
<a name="l00260"></a>00260 <span class="keywordtype">void</span> <a class="code" href="combat_8c.html#a2fbf56c426842d9832c926beaaee402d">effacerPortee</a> (<span class="keywordtype">char</span> arene[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>],<a class="code" href="structCombattant.html">Combattant</a>* perso, <span class="keywordtype">int</span> portee);
<a name="l00261"></a>00261 
<a name="l00266"></a>00266 <span class="keywordtype">int</span> <a class="code" href="combat_8c.html#a5f3ba7b44c1b94a142da3c9dc6ef0992" title="Preconditions : combattant, nbDeplacement, arene initialisé   Postconditions : teste si la case est a...">deplaceCombDroite</a>( <a class="code" href="structCombattant.html">Combattant</a>* combattant, <span class="keywordtype">int</span> nbDeplacement, <span class="keywordtype">char</span> arene[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>]);
<a name="l00267"></a>00267 
<a name="l00272"></a>00272 <span class="keywordtype">int</span> <a class="code" href="combat_8c.html#a51900698a08f82ff80bf0dace5e514ca" title="Preconditions : combattant, nbDeplacement, arene initialisé   Postconditions : teste si la case est a...">deplaceCombGauche</a>( <a class="code" href="structCombattant.html">Combattant</a>* combattant, <span class="keywordtype">int</span> nbDeplacement, <span class="keywordtype">char</span> arene[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>]);
<a name="l00273"></a>00273 
<a name="l00278"></a>00278 <span class="keywordtype">int</span> <a class="code" href="combat_8c.html#a1ed55224c942062ffc13cff7c1be4aab" title="Preconditions : combattant, nbDeplacement, arene initialisé   Postconditions : teste si la case est a...">deplaceCombBas</a>( <a class="code" href="structCombattant.html">Combattant</a>* combattant, <span class="keywordtype">int</span> nbDeplacement, <span class="keywordtype">char</span> arene[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>]);
<a name="l00279"></a>00279 
<a name="l00284"></a>00284 <span class="keywordtype">int</span> <a class="code" href="combat_8c.html#a4aa57c9a574a267f2ab034ab902a14ef" title="Preconditions : combattant, nbDeplacement, arene initialisé   Postconditions : teste si la case est a...">deplaceCombHaut</a>( <a class="code" href="structCombattant.html">Combattant</a>* combattant, <span class="keywordtype">int</span> nbDeplacement, <span class="keywordtype">char</span> arene[<a class="code" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="code" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>]);
<a name="l00285"></a>00285 
<a name="l00286"></a>00286 
<a name="l00287"></a>00287 <span class="keywordtype">int</span> <a class="code" href="combat_8c.html#a30a3a60572c27f856cd9e98e666cfe64">mainCombat</a>();
<a name="l00288"></a>00288 
<a name="l00289"></a>00289 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 4 2013 08:45:33 for Iniuriam by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
